<?php
/**
 * 项目公共配置文件
 * @author Admin
 */

$array=explode('/', str_replace("\\","/", $_SERVER['DOCUMENT_ROOT']));
$last=array_pop($array);
$root=empty($last) ? array_pop($array) : $last;
define('ROOT' , $root);

return array(
	//'配置项'=>'配置值'
	'DEFAULT_THEME'         => '',
	'APP_AUTOLOAD_PATH' 	=> '@ORG.Driver.TagLib',
	// 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE  模式); 3 (兼容模式)  默认为PATHINFO 模式，提供最好的用户体验和SEO支持
	'URL_MODEL'         	=> 2,
	
	//分组
	'APP_GROUP_LIST'    	=> 'Home,Admin,Zh,AdminZh',
	'DEFAULT_GROUP'     	=> 'Home',
	
	//模板
	'TMPL_STRIP_SPACE'  	=> false,
	'TMPL_TEMPLATE_SUFFIX'  => '.shtml',
	'TMPL_PARSE_STRING' 	=> array(
		'./Upload'=>__ROOT__.'/Upload',
		'/'.ROOT.'/'	=>	'/',
	),
	
	//URL
	'URL_CASE_INSENSITIVE'  => true,
	'URL_HTML_SUFFIX'       => '',
	
	//数据库
	'DB_FIELDTYPE_CHECK'	=> true,
	'DB_FIELDS_CACHE'       => true,
	'DB_TYPE'           	=> 'mysql',
	'DB_HOST'           	=> 'localhost',
	
	'DB_NAME'           	=> 'fxitl',
	'DB_USER'           	=> 'root',
	'DB_PWD'            	=> '',
	
	//'DB_NAME'           	=> 'mycms',
	//'DB_USER'           	=> 'root',
	//'DB_PWD'            	=> 'root',

	'DB_PORT'           	=> '3306',
	// 中英文控制
	'DB_PREFIX'         	=> 'cms_en_',
	'DEFAULT_LANG'          => 'zh-cn',
	
	//分页
	'VAR_PAGE'				=> 'p',
	'OUTPUT_ENCODE'         =>  false,
	
);
?>